/*    */ package andriod.service;
/*    */ 
/*    */ import andriod.dao.PersistDao;
/*    */ import com.jcrj.entity.ODaily;
/*    */ import java.util.List;
/*    */ 
/*    */ public class ArdDailyService
/*    */ {
/*    */   private PersistDao persistDao;
/*    */ 
/*    */   public List<ODaily> getDailyList(int userId)
/*    */   {
/* 13 */     String hql = "from ODaily where userId=" + userId;
/* 14 */     hql = hql + " order by createTime desc";
/* 15 */     List list = this.persistDao.find(hql);
/* 16 */     return list;
/*    */   }
/*    */ 
/*    */   public long countDaily(int userId) {
/* 20 */     String hql = "select count(id) from ODaily where userId=" + userId;
/* 21 */     long count = this.persistDao.findForLong(hql);
/* 22 */     return count;
/*    */   }
/*    */ 
/*    */   public PersistDao getPersistDao() {
/* 26 */     return this.persistDao;
/*    */   }
/*    */ 
/*    */   public void setPersistDao(PersistDao persistDao) {
/* 30 */     this.persistDao = persistDao;
/*    */   }
/*    */ }

/* Location:           /Volumes/work/oa/WEB-INF/classes/
 * Qualified Name:     andriod.service.ArdDailyService
 * JD-Core Version:    0.6.0
 */